package com.jxd.project.wzgl.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jxd.project.wzgl.dto.ApplicationDTO;
import com.jxd.project.wzgl.dto.QueryApplicationDTO;
import com.jxd.project.menu.model.Application;

import java.util.List;
import java.util.Map;

public interface IApplicationService extends IService<Application> {

    /**
     * 新增申请
     * @param applicationDTO
     * @return
     */
    Map<String,Object> addApplication(ApplicationDTO applicationDTO);

    /**
     * 修改申请
     * @param application
     * @return
     */
    boolean updateApplication(ApplicationDTO application);

    /**
     * 更新申请状态
     * @param application
     * @return
     */
    boolean updateApplicationStatus(ApplicationDTO application);

    /**
     * 删除申请
     * @param applicationIDs
     * @return
     */
    boolean deleteApplication(List<Integer> applicationIDs);

    /**
     * 根据仓库ID、申请人姓名、申请状态查询申请
     * @param queryApplicationDTO
     */
    Map<String, Object> getApplicationWithQueryApplicationDTO(QueryApplicationDTO queryApplicationDTO);

    /**
     * 查询双重身份的借用审核待办数量
     * @param empNo
     * @return
     */
    int getDoubleIdentityBorrowBackLogCount(int empNo);

}
